-- GENERATED SPELL FOR [Timber Worg] --


function spell0_18476(pUnit, Event) --@Chilling Howl,n/a--
pUnit:FullCastSpellOnTarget(32918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18476', 15000, 1)
end

function spell1_18476(pUnit, Event) --@Snarl,n/a--
pUnit:FullCastSpellOnTarget(32919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18476', 633, 1)
end

function Sorts_18476(pUnit, Event)
local choix_sorts_18476 = math.random(0, 1)
if choix_sorts_18476 == 0 then
pUnit:RegisterEvent('spell0_18476', 1, 1)
end
if choix_sorts_18476 == 1 then
pUnit:RegisterEvent('spell1_18476', 1, 1)
end
end

function mob18476_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18476', math.random(1500, 3000), 1)
end

function mob18476_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18476_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18476_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18476, 1, 'mob18476_Action')
RegisterUnitEvent(18476, 2, 'mob18476_Leave')
RegisterUnitEvent(18476, 3, 'mob18476_Kill')
RegisterUnitEvent(18476, 4, 'mob18476_Die')
